home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17175 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: library.erc.clarkson.edu!rpi!not-for-mail
  2. From: javaprog@best.com (John Lockwood)
  3. Newsgroups: comp.lang.c++,comp.lang.c++.moderated
  4. Subject: Re: Dynamic class definitions in C++: possible?
  5. Date: 13 Apr 1996 17:31:41 -0000
  6. Organization: Best Internet Communications
  7. Sender: cppmods@netlab.cs.rpi.edu
  8. Approved: Dietmar.Kuehl@uni-konstanz.de
  9. Message-ID: <4koodt$2hh@netlab.cs.rpi.edu>
  10. References: <4ko91f$1cb@netlab.cs.rpi.edu>
  11. NNTP-Posting-Host: netlab.cs.rpi.edu
  12. X-Original-Date: Sat, 13 Apr 1996 16:59:07 GMT
  13.  
  14. Kyle.F.Downey@williams.edu (Kyle F. Downey) wrote:
  15.  
  16. >1) load a C++ class definition from a file
  17. >2) convert it to an internal format
  18. >3) use the class just as you would a compiled class
  19.  
  20. >This would allow you to add a class at run-time based on a
  21. >text/user-supplied definition. 
  22.  
  23. Why not rethink the problem?
  24.  
  25. 1) Read some data from a file.
  26. 2) Do something with this data using the rich language features that
  27. C++ offers (polymorphism, templates, etc).
  28. 3) Make your program work just as if you'd implemented it using 
  29. some wierd JAVA-inspired idea.
  30.  
  31. I'm not trying to be intentionally dense here.  If there are problems
  32. that can only be solved in the way you've outlined and not in the way
  33. I have, I'd be interested if you or others would chime in.
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. Regards,
  42.  
  43.  
  44.  
  45. John Lockwood
  46. john@wwg.com
  47. javaprog@best.com
  48. http://www.best.com/~javaprog
  49.  
  50.  
  51.       [ Articles to moderate: mailto:c++-submit@netlab.cs.rpi.edu ]
  52.       [  Read the C++ FAQ: http://www.connobj.com/cpp/cppfaq.htm  ]
  53.       [  Moderation policy: http://www.connobj.com/cpp/guide.htm  ]
  54.       [      Comments? mailto:c++-request@netlab.cs.rpi.edu       ]
  55.